<?php
	
	/*
	 * MYSQL Database connection string 
	 * */
	//$hostName = 'localhost';
	$hostName = '127.0.0.1'; 
	$username = 'root';
	$password = '';
	$dbname = 'mb126';
	$link = mysql_connect($hostName,$username,$password )or 
	               die(mysql_error());

	/*
	 * Database selection 
	 */	
	mysql_select_db($dbname,$link) or die(mysql_error());
	
		            	
	$query = "INSERT INTO `users` VALUES(
     null,'Vikas Dwivedi','vikas.nice@gmail.com','1q1q1q',NOW(),null,'1'
     )";
	
	
	mysql_query($query)or die(mysql_error());
		            	
	$id = mysql_insert_id();
  $number_of_record_inserted = mysql_affected_rows();
	 		            	
	echo "<h1>$number_of_record_inserted</h1>
	<h4>records inserted on id</h4>
	<h1>$id</h1>";
									
		            	